package cn.virens.database.mysql.mapper.sys;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import cn.virens.database.mysql.model.sys.SysRole;
import tk.mybatis.mapper.common.Mapper;

public interface SysRoleMapper extends Mapper<SysRole> {

	List<String> getRoles(@Param("account") String account);

	List<Map<String, Object>> getPermissions(@Param("roleID") Integer roleID);

	int deletePermissions(@Param("roleID") Integer roleID);

	int insertPermissions(@Param("roleID") Integer roleID, @Param("permissions") Map<String, String> permissions);

}